# Maintainer: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Dct Mei <dctxmei@yandex.com>
# Contributor: Eric S. Londres <elondres@stevens.edu>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Cillian Berragan <cjberragan@gmail.com>
# Contributor: Felix Golatofski <contact@xdfr.de>

pkgname=nyxt
pkgver=2.2.4
pkgrel=5
pkgdesc='A keyboard-driven web browser designed for power users'
arch=('loong64' 'x86_64')
url='https://nyxt.atlas.engineer'
license=('BSD')
depends=(
  'enchant'
  'glib-networking'
  'gobject-introspection-runtime'
  'gsettings-desktop-schemas'
  'libfixposix'
  'webkit2gtk-4.1'
)
# If someday Nyxt works with other Lisps, replace 'sbcl' with 'common-lisp'.
# NOTE: sbcl provides both common-lisp and cl-asdf.
makedepends=(
  'git'
  'sbcl'
  'cl-asdf'
  'gobject-introspection-runtime'
)
optdepends=(
  'gstreamer: for HTML5 audio/video'
  'gst-plugins-base: for HTML5 audio/video'
  'gst-plugins-good: for HTML5 audio/video'
  'gst-plugins-bad: for HTML5 audio/video'
  'gst-plugins-ugly: for HTML5 audio/video'
)
options=('!strip' '!makeflags')
_commit='425c71b2c124f8b3bac72d54bce184d0afd0ab1d'
source=(
  # main repo
  "git+https://github.com/atlas-engineer/nyxt.git#commit=$_commit"
  # submodules
  'gitlab.common-lisp.net-alexandria-alexandria::git+https://gitlab.common-lisp.net/alexandria/alexandria'
  'gitlab.common-lisp.net-nyxt-rt::git+https://gitlab.common-lisp.net/nyxt/rt'
  'github.com-sionescu-bordeaux-threads::git+https://github.com/sionescu/bordeaux-threads'
  'github.com-sionescu-fiveam::git+https://github.com/sionescu/fiveam'
  'github.com-didierverna-asdf-flv::git+https://github.com/didierverna/asdf-flv'
  'github.com-gwkkwg-trivial-backtrace::git+https://github.com/gwkkwg/trivial-backtrace'
  'github.com-gwkkwg-lift::git+https://github.com/gwkkwg/lift'
  'github.com-hawkir-calispel::git+https://github.com/hawkir/calispel'
  'github.com-hawkir-cl-jpl-util::git+https://github.com/hawkir/cl-jpl-util'
  'gitlab.common-lisp.net-vsedach-eager-future2::git+https://gitlab.common-lisp.net/vsedach/eager-future2'
  'github.com-trivial-garbage-trivial-garbage::git+https://github.com/trivial-garbage/trivial-garbage'
  'github.com-gwkkwg-cl-containers::git+https://github.com/gwkkwg/cl-containers'
  'github.com-gwkkwg-metatilities-base::git+https://github.com/gwkkwg/metatilities-base'
  'github.com-inaimathi-cl-css::git+https://github.com/inaimathi/cl-css'
  'github.com-metawilm-cl-custom-hash-table::git+https://github.com/metawilm/cl-custom-hash-table'
  'github.com-wiseman-cl-html-diff::git+https://github.com/wiseman/cl-html-diff'
  'github.com-wiseman-cl-difflib::git+https://github.com/wiseman/cl-difflib'
  'github.com-hankhero-cl-json::git+https://github.com/hankhero/cl-json'
  'github.com-edicl-cl-ppcre::git+https://github.com/edicl/cl-ppcre'
  'github.com-edicl-flexi-streams::git+https://github.com/edicl/flexi-streams'
  'github.com-trivial-gray-streams-trivial-gray-streams::git+https://github.com/trivial-gray-streams/trivial-gray-streams'
  'github.com-40ants-cl-prevalence::git+https://github.com/40ants/cl-prevalence'
  'github.com-svenvc-s-sysdeps::git+https://github.com/svenvc/s-sysdeps'
  'github.com-usocket-usocket::git+https://github.com/usocket/usocket'
  'github.com-sharplispers-split-sequence::git+https://github.com/sharplispers/split-sequence'
  'github.com-pcostanza-closer-mop::git+https://github.com/pcostanza/closer-mop'
  'github.com-robert-strandh-cluffer::git+https://github.com/robert-strandh/cluffer'
  'github.com-robert-strandh-Acclimation::git+https://github.com/robert-strandh/Acclimation'
  'github.com-robert-strandh-Clump::git+https://github.com/robert-strandh/Clump'
  'github.com-fukamachi-dexador::git+https://github.com/fukamachi/dexador'
  'github.com-cl-babel-babel::git+https://github.com/cl-babel/babel'
  'github.com-trivial-features-trivial-features::git+https://github.com/trivial-features/trivial-features'
  'github.com-hu-dwim-hu.dwim.stefil::git+https://github.com/hu-dwim/hu.dwim.stefil'
  'github.com-hu-dwim-hu.dwim.asdf::git+https://github.com/hu-dwim/hu.dwim.asdf'
  'github.com-fukamachi-fast-http::git+https://github.com/fukamachi/fast-http'
  'github.com-fukamachi-proc-parse::git+https://github.com/fukamachi/proc-parse'
  'github.com-fukamachi-prove::git+https://github.com/fukamachi/prove'
  'github.com-pnathan-cl-ansi-text::git+https://github.com/pnathan/cl-ansi-text'
  'github.com-tpapp-cl-colors::git+https://github.com/tpapp/cl-colors'
  'github.com-sharplispers-let-plus::git+https://github.com/sharplispers/let-plus'
  'github.com-tokenrove-anaphora::git+https://github.com/tokenrove/anaphora'
  'github.com-fukamachi-xsubseq::git+https://github.com/fukamachi/xsubseq'
  'github.com-fukamachi-smart-buffer::git+https://github.com/fukamachi/smart-buffer'
  'github.com-m2ym-cl-syntax::git+https://github.com/m2ym/cl-syntax'
  'github.com-m2ym-cl-annot::git+https://github.com/m2ym/cl-annot'
  'github.com-edicl-cl-interpol::git+https://github.com/edicl/cl-interpol'
  'github.com-edicl-cl-unicode::git+https://github.com/edicl/cl-unicode'
  'github.com-melisgl-named-readtables::git+https://github.com/melisgl/named-readtables'
  'github.com-m2ym-trivial-types::git+https://github.com/m2ym/trivial-types'
  'github.com-fukamachi-quri::git+https://github.com/fukamachi/quri'
  'github.com-rpav-fast-io::git+https://github.com/rpav/fast-io'
  'github.com-sionescu-static-vectors::git+https://github.com/sionescu/static-vectors'
  'github.com-cffi-cffi::git+https://github.com/cffi/cffi'
  'github.com-rpav-CheckL::git+https://github.com/rpav/CheckL'
  'github.com-wlbr-cl-marshal::git+https://github.com/wlbr/cl-marshal'
  'github.com-edicl-chunga::git+https://github.com/edicl/chunga'
  'github.com-fukamachi-cl-cookie::git+https://github.com/fukamachi/cl-cookie'
  'github.com-dlowe-net-local-time::git+https://github.com/dlowe-net/local-time'
  'github.com-Shinmera-trivial-mimes::git+https://github.com/Shinmera/trivial-mimes'
  'github.com-edicl-cl-fad::git+https://github.com/edicl/cl-fad'
  'github.com-froydnj-chipz::git+https://github.com/froydnj/chipz'
  'gitlab.common-lisp.net-nyxt-cl-base64::git+https://gitlab.common-lisp.net/nyxt/cl-base64'
  'gitlab.common-lisp.net-nyxt-ptester::git+https://gitlab.common-lisp.net/nyxt/ptester'
  'gitlab.common-lisp.net-nyxt-kmrcl::git+https://gitlab.common-lisp.net/nyxt/kmrcl'
  'github.com-takagi-cl-reexport::git+https://github.com/takagi/cl-reexport'
  'github.com-cl-plus-ssl-cl-plus-ssl::git+https://github.com/cl-plus-ssl/cl-plus-ssl'
  'github.com-fukamachi-lack::git+https://github.com/fukamachi/lack'
  'github.com-fukamachi-circular-streams::git+https://github.com/fukamachi/circular-streams'
  'github.com-fukamachi-http-body::git+https://github.com/fukamachi/http-body'
  'github.com-Rudolph-Miller-jonathan::git+https://github.com/Rudolph-Miller/jonathan'
  'github.com-sharplispers-ironclad::git+https://github.com/sharplispers/ironclad'
  'github.com-fukamachi-clack::git+https://github.com/fukamachi/clack'
  'github.com-KDr2-cl-fastcgi::git+https://github.com/KDr2/cl-fastcgi'
  'github.com-edicl-hunchentoot::git+https://github.com/edicl/hunchentoot'
  'github.com-pmai-md5::git+https://github.com/pmai/md5'
  'github.com-jdz-rfc2388::git+https://github.com/jdz/rfc2388'
  'github.com-edicl-cl-who::git+https://github.com/edicl/cl-who'
  'github.com-edicl-drakma::git+https://github.com/edicl/drakma'
  'gitlab.common-lisp.net-nyxt-puri::git+https://gitlab.common-lisp.net/nyxt/puri'
  'github.com-tlikonen-cl-enchant::git+https://github.com/tlikonen/cl-enchant'
  'github.com-slburson-fset::git+https://github.com/slburson/fset'
  'gitlab.common-lisp.net-misc-extensions-devel::git+https://gitlab.common-lisp.net/misc-extensions/devel'
  'github.com-hu-dwim-hu.dwim.defclass-star::git+https://github.com/hu-dwim/hu.dwim.defclass-star'
  'github.com-sionescu-iolib::git+https://github.com/sionescu/iolib'
  'github.com-antifuchs-idna::git+https://github.com/antifuchs/idna'
  'github.com-sionescu-swap-bytes::git+https://github.com/sionescu/swap-bytes'
  'github.com-sharplispers-log4cl::git+https://github.com/sharplispers/log4cl'
  'gitlab.common-lisp.net-stefil-stefil::git+https://gitlab.common-lisp.net/stefil/stefil'
  'github.com-gwkkwg-metabang-bind::git+https://github.com/gwkkwg/metabang-bind'
  'github.com-slime-slime::git+https://github.com/slime/slime'
  'github.com-cbaggers-mk-string-metrics::git+https://github.com/cbaggers/mk-string-metrics'
  'github.com-gwkkwg-moptilities::git+https://github.com/gwkkwg/moptilities'
  'gitlab.common-lisp.net-parenscript-parenscript::git+https://gitlab.common-lisp.net/parenscript/parenscript'
  'github.com-Shinmera-plump::git+https://github.com/Shinmera/plump'
  'github.com-Shinmera-array-utils::git+https://github.com/Shinmera/array-utils'
  'github.com-Shinmera-documentation-utils::git+https://github.com/Shinmera/documentation-utils'
  'github.com-Shinmera-trivial-indent::git+https://github.com/Shinmera/trivial-indent'
  'github.com-Shinmera-parachute::git+https://github.com/Shinmera/parachute'
  'github.com-Shinmera-form-fiddle::git+https://github.com/Shinmera/form-fiddle'
  'github.com-ruricolist-serapeum::git+https://github.com/ruricolist/serapeum'
  'github.com-guicho271828-trivia::git+https://github.com/guicho271828/trivia'
  'gitlab.common-lisp.net-frideau-fare-quasiquote::git+https://gitlab.common-lisp.net/frideau/fare-quasiquote'
  'gitlab.common-lisp.net-frideau-fare-utils::git+https://gitlab.common-lisp.net/frideau/fare-utils'
  'github.com-m2ym-optima::git+https://github.com/m2ym/optima'
  'github.com-adlai-Eos::git+https://github.com/adlai/Eos'
  'github.com-guicho271828-lisp-namespace::git+https://github.com/guicho271828/lisp-namespace'
  'github.com-Zulu-Inuoe-trivial-cltl2::git+https://github.com/Zulu-Inuoe/trivial-cltl2'
  'github.com-guicho271828-type-i::git+https://github.com/guicho271828/type-i'
  'github.com-Bike-introspect-environment::git+https://github.com/Bike/introspect-environment'
  'github.com-pkhuong-string-case::git+https://github.com/pkhuong/string-case'
  'github.com-sharplispers-parse-number::git+https://github.com/sharplispers/parse-number'
  'gitlab.common-lisp.net-parse-declarations-parse-declarations::git+https://gitlab.common-lisp.net/parse-declarations/parse-declarations'
  'github.com-lmj-global-vars::git+https://github.com/lmj/global-vars'
  'github.com-ruricolist-trivial-file-size::git+https://github.com/ruricolist/trivial-file-size'
  'github.com-cbaggers-trivial-macroexpand-all::git+https://github.com/cbaggers/trivial-macroexpand-all'
  'github.com-vindarel-cl-str::git+https://github.com/vindarel/cl-str'
  'github.com-rudolfochrist-cl-change-case::git+https://github.com/rudolfochrist/cl-change-case'
  'github.com-snmsts-trivial-clipboard::git+https://github.com/snmsts/trivial-clipboard'
  'github.com-phoe-trivial-package-local-nicknames::git+https://github.com/phoe/trivial-package-local-nicknames'
  'github.com-libre-man-unix-opts::git+https://github.com/libre-man/unix-opts'
  'github.com-Ferada-cl-cffi-gtk::git+https://github.com/Ferada/cl-cffi-gtk'
  'github.com-joachifm-cl-webkit::git+https://github.com/joachifm/cl-webkit'
  'github.com-andy128k-cl-gobject-introspection::git+https://github.com/andy128k/cl-gobject-introspection'
  'github.com-lmj-lparallel::git+https://github.com/lmj/lparallel'
  'gitlab.common-lisp.net-nyxt-jpl-queues::git+https://gitlab.common-lisp.net/nyxt/jpl-queues'
  'gitlab.common-lisp.net-nyxt-mt19937::git+https://gitlab.common-lisp.net/nyxt/mt19937'
  'gitlab.common-lisp.net-s-xml-s-xml::git+https://gitlab.common-lisp.net/s-xml/s-xml'
  'gitlab.common-lisp.net-cl-utilities-cl-utilities::git+https://gitlab.common-lisp.net/cl-utilities/cl-utilities'
  'github.com-jnjcc-cl-qrencode::git+https://github.com/jnjcc/cl-qrencode'
  'github.com-Shinmera-clss::git+https://github.com/Shinmera/clss'
  'github.com-ruricolist-spinneret::git+https://github.com/ruricolist/spinneret'
  'github.com-xach-salza2::git+https://github.com/xach/salza2'
  'github.com-xach-zpng::git+https://github.com/xach/zpng'
  'gitlab.common-lisp.net-iterate-iterate::git+https://gitlab.common-lisp.net/iterate/iterate'
  'github.com-osicat-osicat::git+https://github.com/osicat/osicat'
)
b2sums=('SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP'
        'SKIP')

pkgver() {
  cd nyxt

  git describe --tags
}

prepare() {
  cd nyxt

  git submodule init

  git config submodule._build/alexandria.url "$srcdir/gitlab.common-lisp.net-alexandria-alexandria"
  git config submodule._build/rt.url "$srcdir/gitlab.common-lisp.net-nyxt-rt"
  git config submodule._build/bordeaux-threads.url "$srcdir/github.com-sionescu-bordeaux-threads"
  git config submodule._build/fiveam.url "$srcdir/github.com-sionescu-fiveam"
  git config submodule._build/asdf-flv.url "$srcdir/github.com-didierverna-asdf-flv"
  git config submodule._build/trivial-backtrace.url "$srcdir/github.com-gwkkwg-trivial-backtrace"
  git config submodule._build/lift.url "$srcdir/github.com-gwkkwg-lift"
  git config submodule._build/calispel.url "$srcdir/github.com-hawkir-calispel"
  git config submodule._build/cl-jpl-util.url "$srcdir/github.com-hawkir-cl-jpl-util"
  git config submodule._build/eager-future2.url "$srcdir/gitlab.common-lisp.net-vsedach-eager-future2"
  git config submodule._build/trivial-garbage.url "$srcdir/github.com-trivial-garbage-trivial-garbage"
  git config submodule._build/cl-containers.url "$srcdir/github.com-gwkkwg-cl-containers"
  git config submodule._build/metatilities-base.url "$srcdir/github.com-gwkkwg-metatilities-base"
  git config submodule._build/cl-css.url "$srcdir/github.com-inaimathi-cl-css"
  git config submodule._build/cl-custom-hash-table.url "$srcdir/github.com-metawilm-cl-custom-hash-table"
  git config submodule._build/cl-html-diff.url "$srcdir/github.com-wiseman-cl-html-diff"
  git config submodule._build/cl-difflib.url "$srcdir/github.com-wiseman-cl-difflib"
  git config submodule._build/cl-json.url "$srcdir/github.com-hankhero-cl-json"
  git config submodule._build/cl-ppcre.url "$srcdir/github.com-edicl-cl-ppcre"
  git config submodule._build/flexi-streams.url "$srcdir/github.com-edicl-flexi-streams"
  git config submodule._build/trivial-gray-streams.url "$srcdir/github.com-trivial-gray-streams-trivial-gray-streams"
  git config submodule._build/cl-prevalence.url "$srcdir/github.com-40ants-cl-prevalence"
  git config submodule._build/s-sysdeps.url "$srcdir/github.com-svenvc-s-sysdeps"
  git config submodule._build/usocket.url "$srcdir/github.com-usocket-usocket"
  git config submodule._build/split-sequence.url "$srcdir/github.com-sharplispers-split-sequence"
  git config submodule._build/closer-mop.url "$srcdir/github.com-pcostanza-closer-mop"
  git config submodule._build/cluffer.url "$srcdir/github.com-robert-strandh-cluffer"
  git config submodule._build/Acclimation.url "$srcdir/github.com-robert-strandh-Acclimation"
  git config submodule._build/Clump.url "$srcdir/github.com-robert-strandh-Clump"
  git config submodule._build/dexador.url "$srcdir/github.com-fukamachi-dexador"
  git config submodule._build/babel.url "$srcdir/github.com-cl-babel-babel"
  git config submodule._build/trivial-features.url "$srcdir/github.com-trivial-features-trivial-features"
  git config submodule._build/hu.dwim.stefil.url "$srcdir/github.com-hu-dwim-hu.dwim.stefil"
  git config submodule._build/hu.dwim.asdf.url "$srcdir/github.com-hu-dwim-hu.dwim.asdf"
  git config submodule._build/fast-http.url "$srcdir/github.com-fukamachi-fast-http"
  git config submodule._build/proc-parse.url "$srcdir/github.com-fukamachi-proc-parse"
  git config submodule._build/prove.url "$srcdir/github.com-fukamachi-prove"
  git config submodule._build/cl-ansi-text.url "$srcdir/github.com-pnathan-cl-ansi-text"
  git config submodule._build/cl-colors.url "$srcdir/github.com-tpapp-cl-colors"
  git config submodule._build/let-plus.url "$srcdir/github.com-sharplispers-let-plus"
  git config submodule._build/anaphora.url "$srcdir/github.com-tokenrove-anaphora"
  git config submodule._build/xsubseq.url "$srcdir/github.com-fukamachi-xsubseq"
  git config submodule._build/smart-buffer.url "$srcdir/github.com-fukamachi-smart-buffer"
  git config submodule._build/cl-syntax.url "$srcdir/github.com-m2ym-cl-syntax"
  git config submodule._build/cl-annot.url "$srcdir/github.com-m2ym-cl-annot"
  git config submodule._build/cl-interpol.url "$srcdir/github.com-edicl-cl-interpol"
  git config submodule._build/cl-unicode.url "$srcdir/github.com-edicl-cl-unicode"
  git config submodule._build/named-readtables.url "$srcdir/github.com-melisgl-named-readtables"
  git config submodule._build/trivial-types.url "$srcdir/github.com-m2ym-trivial-types"
  git config submodule._build/quri.url "$srcdir/github.com-fukamachi-quri"
  git config submodule._build/fast-io.url "$srcdir/github.com-rpav-fast-io"
  git config submodule._build/static-vectors.url "$srcdir/github.com-sionescu-static-vectors"
  git config submodule._build/cffi.url "$srcdir/github.com-cffi-cffi"
  git config submodule._build/CheckL.url "$srcdir/github.com-rpav-CheckL"
  git config submodule._build/cl-marshal.url "$srcdir/github.com-wlbr-cl-marshal"
  git config submodule._build/chunga.url "$srcdir/github.com-edicl-chunga"
  git config submodule._build/cl-cookie.url "$srcdir/github.com-fukamachi-cl-cookie"
  git config submodule._build/local-time.url "$srcdir/github.com-dlowe-net-local-time"
  git config submodule._build/trivial-mimes.url "$srcdir/github.com-Shinmera-trivial-mimes"
  git config submodule._build/cl-fad.url "$srcdir/github.com-edicl-cl-fad"
  git config submodule._build/chipz.url "$srcdir/github.com-froydnj-chipz"
  git config submodule._build/cl-base64.url "$srcdir/gitlab.common-lisp.net-nyxt-cl-base64"
  git config submodule._build/ptester.url "$srcdir/gitlab.common-lisp.net-nyxt-ptester"
  git config submodule._build/kmrcl.url "$srcdir/gitlab.common-lisp.net-nyxt-kmrcl"
  git config submodule._build/cl-reexport.url "$srcdir/github.com-takagi-cl-reexport"
  git config submodule._build/cl-plus-ssl.url "$srcdir/github.com-cl-plus-ssl-cl-plus-ssl"
  git config submodule._build/lack.url "$srcdir/github.com-fukamachi-lack"
  git config submodule._build/circular-streams.url "$srcdir/github.com-fukamachi-circular-streams"
  git config submodule._build/http-body.url "$srcdir/github.com-fukamachi-http-body"
  git config submodule._build/jonathan.url "$srcdir/github.com-Rudolph-Miller-jonathan"
  git config submodule._build/ironclad.url "$srcdir/github.com-sharplispers-ironclad"
  git config submodule._build/clack.url "$srcdir/github.com-fukamachi-clack"
  git config submodule._build/cl-fastcgi.url "$srcdir/github.com-KDr2-cl-fastcgi"
  git config submodule._build/hunchentoot.url "$srcdir/github.com-edicl-hunchentoot"
  git config submodule._build/md5.url "$srcdir/github.com-pmai-md5"
  git config submodule._build/rfc2388.url "$srcdir/github.com-jdz-rfc2388"
  git config submodule._build/cl-who.url "$srcdir/github.com-edicl-cl-who"
  git config submodule._build/drakma.url "$srcdir/github.com-edicl-drakma"
  git config submodule._build/puri.url "$srcdir/gitlab.common-lisp.net-nyxt-puri"
  git config submodule._build/cl-enchant.url "$srcdir/github.com-tlikonen-cl-enchant"
  git config submodule._build/fset.url "$srcdir/github.com-slburson-fset"
  git config submodule._build/devel.url "$srcdir/gitlab.common-lisp.net-misc-extensions-devel"
  git config submodule._build/hu.dwim.defclass-star.url "$srcdir/github.com-hu-dwim-hu.dwim.defclass-star"
  git config submodule._build/iolib.url "$srcdir/github.com-sionescu-iolib"
  git config submodule._build/idna.url "$srcdir/github.com-antifuchs-idna"
  git config submodule._build/swap-bytes.url "$srcdir/github.com-sionescu-swap-bytes"
  git config submodule._build/log4cl.url "$srcdir/github.com-sharplispers-log4cl"
  git config submodule._build/stefil.url "$srcdir/gitlab.common-lisp.net-stefil-stefil"
  git config submodule._build/metabang-bind.url "$srcdir/github.com-gwkkwg-metabang-bind"
  git config submodule._build/slime.url "$srcdir/github.com-slime-slime"
  git config submodule._build/mk-string-metrics.url "$srcdir/github.com-cbaggers-mk-string-metrics"
  git config submodule._build/moptilities.url "$srcdir/github.com-gwkkwg-moptilities"
  git config submodule._build/parenscript.url "$srcdir/gitlab.common-lisp.net-parenscript-parenscript"
  git config submodule._build/plump.url "$srcdir/github.com-Shinmera-plump"
  git config submodule._build/array-utils.url "$srcdir/github.com-Shinmera-array-utils"
  git config submodule._build/documentation-utils.url "$srcdir/github.com-Shinmera-documentation-utils"
  git config submodule._build/trivial-indent.url "$srcdir/github.com-Shinmera-trivial-indent"
  git config submodule._build/parachute.url "$srcdir/github.com-Shinmera-parachute"
  git config submodule._build/form-fiddle.url "$srcdir/github.com-Shinmera-form-fiddle"
  git config submodule._build/serapeum.url "$srcdir/github.com-ruricolist-serapeum"
  git config submodule._build/trivia.url "$srcdir/github.com-guicho271828-trivia"
  git config submodule._build/fare-quasiquote.url "$srcdir/gitlab.common-lisp.net-frideau-fare-quasiquote"
  git config submodule._build/fare-utils.url "$srcdir/gitlab.common-lisp.net-frideau-fare-utils"
  git config submodule._build/optima.url "$srcdir/github.com-m2ym-optima"
  git config submodule._build/Eos.url "$srcdir/github.com-adlai-Eos"
  git config submodule._build/lisp-namespace.url "$srcdir/github.com-guicho271828-lisp-namespace"
  git config submodule._build/trivial-cltl2.url "$srcdir/github.com-Zulu-Inuoe-trivial-cltl2"
  git config submodule._build/type-i.url "$srcdir/github.com-guicho271828-type-i"
  git config submodule._build/introspect-environment.url "$srcdir/github.com-Bike-introspect-environment"
  git config submodule._build/string-case.url "$srcdir/github.com-pkhuong-string-case"
  git config submodule._build/parse-number.url "$srcdir/github.com-sharplispers-parse-number"
  git config submodule._build/parse-declarations.url "$srcdir/gitlab.common-lisp.net-parse-declarations-parse-declarations"
  git config submodule._build/global-vars.url "$srcdir/github.com-lmj-global-vars"
  git config submodule._build/trivial-file-size.url "$srcdir/github.com-ruricolist-trivial-file-size"
  git config submodule._build/trivial-macroexpand-all.url "$srcdir/github.com-cbaggers-trivial-macroexpand-all"
  git config submodule._build/cl-str.url "$srcdir/github.com-vindarel-cl-str"
  git config submodule._build/cl-change-case.url "$srcdir/github.com-rudolfochrist-cl-change-case"
  git config submodule._build/trivial-clipboard.url "$srcdir/github.com-snmsts-trivial-clipboard"
  git config submodule._build/trivial-package-local-nicknames.url "$srcdir/github.com-phoe-trivial-package-local-nicknames"
  git config submodule._build/unix-opts.url "$srcdir/github.com-libre-man-unix-opts"
  git config submodule._build/cl-cffi-gtk.url "$srcdir/github.com-Ferada-cl-cffi-gtk"
  git config submodule._build/cl-webkit.url "$srcdir/github.com-joachifm-cl-webkit"
  git config submodule._build/cl-gobject-introspection.url "$srcdir/github.com-andy128k-cl-gobject-introspection"
  git config submodule._build/lparallel.url "$srcdir/github.com-lmj-lparallel"
  git config submodule._build/jpl-queues.url "$srcdir/gitlab.common-lisp.net-nyxt-jpl-queues"
  git config submodule._build/mt19937.url "$srcdir/gitlab.common-lisp.net-nyxt-mt19937"
  git config submodule._build/s-xml.url "$srcdir/gitlab.common-lisp.net-s-xml-s-xml"
  git config submodule._build/cl-utilities.url "$srcdir/gitlab.common-lisp.net-cl-utilities-cl-utilities"
  git config submodule._build/cl-qrencode.url "$srcdir/github.com-jnjcc-cl-qrencode"
  git config submodule._build/clss.url "$srcdir/github.com-Shinmera-clss"
  git config submodule._build/spinneret.url "$srcdir/github.com-ruricolist-spinneret"
  git config submodule._build/salza2.url "$srcdir/github.com-xach-salza2"
  git config submodule._build/zpng.url "$srcdir/github.com-xach-zpng"
  git config submodule._build/iterate.url "$srcdir/gitlab.common-lisp.net-iterate-iterate"
  git config submodule._build/osicat.url "$srcdir/github.com-osicat-osicat"

  git -c protocol.file.allow=always submodule update
}

build() {
  make -C nyxt  all
}

package() {
  cd nyxt

  make PREFIX=/usr DESTDIR="$pkgdir" install

  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" licenses/*
}
